package com.ruoyi.zlkc.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 血压对象 zlkc_bp
 * 
 * @author ruoyi
 * @date 2024-12-04
 */
public class ZlkcBp extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 血压id */
    @Excel(name = "血压id")
    private Long id;

    /** 用户id(关联用户表) */
    @Excel(name = "用户id(关联用户表)")
    private Long userId;

    /** 高压 */
    @Excel(name = "高压")
    private Long hbp;

    /** 低压 */
    @Excel(name = "低压")
    private Long dbp;

    /** 心率 */
    @Excel(name = "心率")
    private Long heartrate;

    /** 测量时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "测量时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date measureTime;

    /** 是否正常（0为正常，1为血压偏高，2为血压偏低） */
    @Excel(name = "是否正常", readConverterExp = "0=为正常，1为血压偏高，2为血压偏低")
    private Long states;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setHbp(Long hbp) 
    {
        this.hbp = hbp;
    }

    public Long getHbp() 
    {
        return hbp;
    }
    public void setDbp(Long dbp) 
    {
        this.dbp = dbp;
    }

    public Long getDbp() 
    {
        return dbp;
    }
    public void setHeartrate(Long heartrate) 
    {
        this.heartrate = heartrate;
    }

    public Long getHeartrate() 
    {
        return heartrate;
    }
    public void setMeasureTime(Date measureTime) 
    {
        this.measureTime = measureTime;
    }

    public Date getMeasureTime() 
    {
        return measureTime;
    }
    public void setStates(Long states) 
    {
        this.states = states;
    }

    public Long getStates() 
    {
        return states;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("hbp", getHbp())
            .append("dbp", getDbp())
            .append("heartrate", getHeartrate())
            .append("measureTime", getMeasureTime())
            .append("states", getStates())
            .toString();
    }
}
